FROM registry.cn-hangzhou.aliyuncs.com/shinetechchina/dotnet_core_sdk:3.1 AS build

LABEL maintainer="john@shinetechchina"

WORKDIR /app

#copy csproj and restore as distinct layers
COPY ./. ./aspnetapp/
WORKDIR /app/aspnetapp
RUN dotnet publish -c Release -o out





FROM registry.cn-hangzhou.aliyuncs.com/shinetechchina/aspnet:3.1 AS runtime
WORKDIR /app
COPY --from=build /app/aspnetapp/out ./
ENTRYPOINT ["dotnet", "SpecialBillingApi.dll"]
